package com.nf.action;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class test01 {
    @RequestMapping("/test")
    public String a(Model model,String userName){
        System.out.println(userName);
        String name = "我的名字叫做"+userName;
        model.addAttribute("name",name);
        return "test01";
    }
}
